package org.jeecg.modules.xl.wdt.controller;

import org.jeecg.modules.xl.wdt.entity.WdtGoodsList;
import org.jeecg.modules.xl.wdt.service.WdtGoodsListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* (wdt_goods_list)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/wdt_goods_list")
public class WdtGoodsListController {
/**
* 服务对象
*/
    @Autowired
    private WdtGoodsListService wdtGoodsListServiceImpl;

    /**
    * 通过主键查询单条数据
    *
    * @param id 主键
    * @return 单条数据
    */
    @GetMapping("selectOne")
    public WdtGoodsList selectOne(Integer id) {
        return wdtGoodsListServiceImpl.getById(id);
    }

}
